﻿namespace WordCloudClient.ViewModels.CommonVM
{
    public class BindableBaseVM : BindableBase, INavigationAware
    {
        public INIFile INIFileLauncher = new(".\\Data\\Config.ini");
        public string? Title { get; set; }
        public string? MenuIcon { get; set; }

        public readonly ISystemService _systemService;

        public readonly WinEditHelper _winEditHelper;

        public BindableBaseVM(SystemService systemService, WinEditHelper winEditHelper)
        {
            _systemService = systemService;

            _winEditHelper = winEditHelper;
        }
        public void OnNavigatedTo(NavigationContext navigationContext)
        {
            Title = navigationContext.Parameters["MenuName"].ToString();
            MenuIcon = navigationContext.Parameters["MenuIcon"].ToString();

        }

        public bool IsNavigationTarget(NavigationContext navigationContext)
        {
            return true;
        }
        public void OnNavigatedFrom(NavigationContext navigationContext)
        {
         
        }
    }
}
